<?php
header("Content-type: image/svg+xml");

echo '<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<line x1="100" y1="300" x2="300" y2="100" stroke-width="5" stroke="green" id="line"/>
<script xlink:href="interface.js" />

<rect onmouseover="alert(\'coucou\')" x="600" y="100" width="100" height="100" fill="red"></rect>

<rect onmouseover="move()" onmouseout="remove()" x="100" y="100" width="100" height="100" fill="red"></rect>
</svg>'

?>